// ==UserScript==
// @name           Faceconnect
// @namespace      javmorcas.com
// @include        *.facebook.com/*
// ==/UserScript==

GM_xmlhttpRequest({
    method: 'GET',
    url: 'http://graph.facebook.com/javmorcas',
    headers: {
        'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
        'Accept': 'application/atom+xml,application/xml,text/xml',
    },
    onload: function(responseDetails) {
        alert(responseDetails.responseText);
	eval("a="+responseDetails.responseText);
	document.writeln("<li>"+a["name"]);
	document.writeln("<li>"+a["gender"]);
	document.writeln("<li>"+a["link"]);
	document.writeln("<li>"+a["id"]);
    }
});
